home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok83.lha
/
TKEd
/
Rexx
/
StripBlankLines.tked
< prev
next >
Wrap
Text File
|
1993-08-15
|
1KB
|
29 lines
/** ----------------------------------------------------------------
** ARexx program to delete all blank lines of text
** ----------------------------------------------------------------
** AREXX-Programm, welches aus einem Texte alle Leerzeilen entfernt
** ----------------------------------------------------------------
**
** © Tom Kroener '92
**
**/
options results
address 'TKEd.1' /* Portname of the first started TKEd */
BeginOfFile /* Go to start */
LastLine /* Get number of the last line */
LastLineNr = result
LineNr = 0 /* Counter for the lines */
DO WHILE LineNr <= LastLineNr /* Counts until it reaches the last line */
GetLineLen /* Returns the length of the current line */
IF result = 0 /* If blank line then delete */
THEN DeleteLine
ELSE Cursor "DOWN" /* Goto next line */
LineNr = LineNr + 1 /* Increment linecounter */
END
EXIT 0